<?php
class tbl_log_mcu extends AppModel
{
    public $useTable = 'tbl_log_mcu';
    public $useDbConfig = 'log_db';

    public function get_mcu()
    {
        $params = array(
            'order' => array(
                'reg_date' => 'DESC'
            )
        );
        $data = $this->find('first', $params);

        if(empty($mcu))
        {
            return 0;
        }

        return $data['tbl_log_mcu']['count'];
    }
}